{capture name=js_urls}
	{$default_admin_theme_url}/js/jq-bulkactions.js
{/capture}
{include file="file:$admin_theme_global_path/_header.tpl"
	pageTitle="Careers" masthead="Manage Careers" current="careers_admin_index" js_urls=$smarty.capture.js_urls}
<div class="grid_4 sidenav">
	<h3>{t}Options{/t}</h3>
	<ul>
		<li><a href="{url}/careers/admin/edit/id/-1{/url}">{t}New Career{/t}</a></li>
	</ul>
</div>
<div class="grid_12">
	<div class="top-actions grid_6 alpha">
		<form id="bulk_action_form" action="" method="get" class="bulk-actions">
			<select name="bulk_action" id="bulk_action">
				<option value="">{t}Bulk Actions{/t}</option>
				<option value="{url}/careers/admin/bulkdelete{/url}">{t}Delete{/t}</option>
			</select>
			<input type="submit" value="Apply" />
		</form>
	</div>
	<div class="top-actions grid_6 omega">
		<form action="{url}/careers/admin/index{/url}" method="get" class="search">
			<input type="text" name="q" id="q" value="{$q}" />
			<input type="submit" value="{t}Search Careers{/t}" />
		</form>
	</div>
	{include file="file:$admin_theme_global_path/_pager.tpl" class="grid_12 alpha omega"}
	<div class="grid_12 faux-thead alpha omega">
		<div class="grid_1 alpha"><input type="checkbox" class="checkbox" name="check_all" id="check_all" /></div>
		<div class="grid_3">{t}Career Title{/t}</div>
		<div class="grid_3">{t}Location{/t}</div>
		<div class="grid_2">{t}Last Edited By{/t}</div>
		<div class="grid_3 omega">{t}Date Modified{/t}</div>
	</div>
	{foreach from=$careers item=career key=index}
		<div class="grid_12{if ($index + 1) mod 2 eq 0} even{else} odd{/if} faux-tr alpha omega">
			<div class="grid_1 alpha">
				<input type="checkbox" class="bulk_checkbox"
					name="bulk_checkbox[]" id="career_checkboxes_{$career.id}"
					value="{$career.id}" />
			</div>
			<div class="grid_3"><a href="{url}/careers/admin/edit/id/{$career.id}{/url}">{$career.job_title}</a></div>
			<div class="grid_3">{$career.location_name}</div>
			<div class="grid_2">&nbsp;{*$career.last_edited_by_full_name*}</div>
			<div class="grid_3 omega">{$career.last_modified_on}</div>
		</div>
	{/foreach}
	{include file="file:$admin_theme_global_path/_pager.tpl" class="grid_12 alpha omega"}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
